summaryrefslogtreecommitdiff
path: root/src/pages/[locale]/index.astro
blob: d895128ab0bacbc0f01b55068489244179e42d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
import Page from '$layouts/Page.astro';
import localeStaticPaths from '$lib/localeStaticPaths';
import translate from '$i18n/translate';
import tPage from '$i18n/translations/pages/home';
import type Locale from '$types/Locale';

export async function getStaticPaths() {
  return localeStaticPaths;
}

const locale = Astro.params.locale as Locale;
const t = translate(locale);
---

<Page title={t(tPage, { key: 'title' })}>
  <section>
    <p>{t(tPage, { key: 'intro' })}</p>

    <nav>
      <ul class="list-style-none">
        <li>
          <a href={`/${locale}/submit`} class="btn">
            {t(tPage, { key: 'submit' })}
          </a>
        </li>
        <li>
          <a href={`/${locale}/furthsettins`} class="btn">
            {t(tPage, { key: 'buy' })}
          </a>
        </li>
        <li>
          <a href={`/${locale}/jyne`} class="btn">
            {t(tPage, { key: 'join' })}
          </a>
        </li>
        <li>
          <a href={`/${locale}/news`} class="btn">
            {t(tPage, { key: 'news' })}
          </a>
        </li>
        <li>
          <a href={`/${locale}/about`} class="btn">
            {t(tPage, { key: 'about' })}
          </a>
        </li>
        <li>
          <a href={`/${locale}/comatee`} class="btn">
            {t(tPage, { key: 'committee' })}
          </a>
        </li>
        <li>
          <a href={`/${locale}/contact`} class="btn">
            {t(tPage, { key: 'contact' })}
          </a>
        </li>
      </ul>
    </nav>
  </section>
</Page>